package wuji.demospringclouduserconsumer.hystrix;

import org.springframework.stereotype.Component;
import wuji.demospringclouduserconsumer.service.UserServiceFeign;
import wuji.pojo.User;

import java.util.List;

@Component
public class UserServiceHystrix implements UserServiceFeign {

    @Override
    public User login(String username, String password) {
        User errUser = new User() ;
        errUser.setUsername("错误");
        errUser.setUpwd("错误") ;
        return errUser;
    }

    @Override
    public List<User> userList() {
        System.out.println("调用userlist报错了");
        return null;
    }
}
